package com.rental.model.vo.house;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "出租房屋分页查询")
public class SubletHousePageVo {
    @Schema(description = "房屋id")
    private Long id;
    @Schema(description = "位置")
    private String location;
    @Schema(description = "房屋标题")
    private String title;
    @Schema(description = "租金")
    private String rent;
    @Schema(description = "房屋图片")
    private String imagesUrl;
    @Schema(description = "添加用户头像")
    private String photo;
    @Schema(description = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @Schema(description = "浏览次数")
    private Integer viewCount;
    @Schema(description = "上下架状态0下架1上架")
    private Integer state;
}
